#ifndef __PLAYER_H__
#define __PLAYER_H__
#include "ShooterObject.h"
#include "BaseCreator.h"
#include "GameObject.h"

class Player:public ShooterObject{
    public:
        Player();

        virtual void draw();
        virtual void update();
        virtual void clean();

//        void handleInput();
        void load(const LoaderParams * pParams);

    private:
        // bring the player back if there are lives left
        void ressurect();

        void handleInput();
        void handleAnimation();

    private:
        int m_invulnerable;
        int m_invulnerableTime;
        int m_invulnerableCounter;

//        void draw(SDL_Renderer *){};
};

class PlayerCreator : public BaseCreator {
    GameObject * createGameObject() const {
        return new Player();
    }
};

#endif
